<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>日语在线考试</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<s:if test="questionType.type=='reading'">
			<s:if test="questionType.content=='select'">
				<s:form action="updateQuestion" method="post" name="form1">
					<s:hidden name="question.questionId" value="%{question.questionId}"></s:hidden>
					<s:hidden name="answer.answerId" value="%{answer.answerId}"></s:hidden>
					<s:hidden name="questionContent.questionContentId"
						value="%{questionContent.questionContentId}"></s:hidden>
					<s:hidden name="questionSubject.questionSubjectId"
						value="%{questionSubject.questionSubjectId}"></s:hidden>
					<s:textfield name="questionSubject.questionSubjectContent"
						value="%{questionSubject.questionSubjectContent}" label="题目内容"></s:textfield>
					<s:textfield name="questionSubject.questionBookNum"
						value="%{questionSubject.questionBookNum}" label="题目在教材中编号"></s:textfield>
					<s:textarea name="questionContent.questionContent"
						value="%{questionContent.questionContent}" label="文章"></s:textarea>
					<s:textfield name="question.questionChild"
						value="%{question.questionChild}" label="试题题干"></s:textfield>
					<s:textfield name="question.questionNumber"
						value="%{question.questionNumber}" label="试题编号"></s:textfield>
					<s:textfield name="answer.optionA" value="%{answer.optionA}"
						label="A."></s:textfield>
					<s:textfield name="answer.optionB" value="%{answer.optionB}"
						label="B."></s:textfield>
					<s:textfield name="answer.optionC" value="%{answer.optionC}"
						label="C."></s:textfield>
					<s:textfield name="answer.optionD" value="%{answer.optionD}"
						label="D."></s:textfield>
					<s:textfield name="answer.answer" value="%{answer.answer}"
						label="正确答案"></s:textfield>
					<s:select name="answer.optionCount"
						list="{'1','2','3','4','5','6','7','8','9','10','11'}"
						label="选项个数"></s:select>
					<s:submit value="修改"></s:submit>
				</s:form>
			</s:if>
		</s:if>
	</body>
</html>
